package com.lb.service;

import java.util.List;

import com.lb.bean.Message;
import com.lb.bean.User;

public interface UserService {

	public void save(User user);

	public void delete(User user);

	public User findById(Integer id);
	
	public void update(User user);
	
	public User loginValid(String accountName,String password) throws Exception;
	
	public boolean validateAccountName(String accountName)throws Exception;
	
	public User validateQuestion(String accountName,String question,String answer) throws Exception;
	
	public User findUserByAccountName(String accountName) throws Exception;
	
	public List<Message> findMessage(String accountName) throws Exception;
	

}
